if(obj.event === '{$name}'){
  layer.open({
      title:'{$title}',
      type: {$type},
      maxmin: true,
      area: ['{:request()->isMobile()?'100%':'500px'}', '420px'],
      id:'{$id}',
      content: {$url},
      end: function(){
        location.href = location;
      }
  });
}
